import jg_type_pre from "../../service/middleware_fns/jg_type_pre";

// 部门明细数据

export default class departmentDetailed implements organizationInf.departmentModel{

    id =  ''
    name = ''
    level: '特级' | '一级' | '二级' | '三级' = '特级'
    businessModel: '直营' | '加盟' | '合作分利' | '注资合作' | '投资合作' = '直营'
    kind: '管理部门' | '分公司' | '营业部' | '支持部门' | '技术部' | '财务部' | '综合部门' | '社区门店' = '营业部'    
    enable = true
    createDate =  ''
    refereedBy = ''
    parentSectorId =  ''
    companyId =  ''

    public constructor(data?){

        let _this = this;

        if(data){

            Object.keys(data).forEach(key =>{

                if(_this.hasOwnProperty(key)){
                    _this[key] = data[key]
                }
                
            })
            
        }
        
    }
    
}